<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
      div{
          width: 100px;
          height: 100px;
          background-color: chartreuse;
          position: absolute;
          left:100px;
          top:100px;
      }

      /* 设置动画 
      moveDiv 动画的名称

      */
      @keyframes moveDiv {
            
        0%{
            left:100px;
            top:100px;
        }
        25%{
            left:800px;
            top:100px;
        }
      }

    </style>
</head>
<body>


      <div></div>
    
</body>
</html>